package com.tuo51.childcare.domain.carestore;

import com.tuo51.foudation.model.Domain;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Data
@Table(name = "m_care_store")
public class StoreItem extends Domain implements Serializable {
  private static final long serialVersionUID = 1L;

  @Column(columnDefinition = "varchar(256) COMMENT '标题'", nullable = false)
  private String title;

  @Column(columnDefinition = " varchar(45)  COMMENT '渠道'")
  private String channel;

  @Column(columnDefinition = "varchar(256) COMMENT '分类'")
  private String categories;

  @Column(columnDefinition = "varchar(512)  COMMENT '标签'")
  private String tags;

  @Column(columnDefinition = "int default 0 COMMENT '媒体类型， 0：图片    1.视频'", nullable = false)
  private Integer mediaType = 1;

  @Column(columnDefinition = "varchar(1024) COMMENT '媒体URL, 多个url通过竖线分割'")
  private String media;

  @Column(columnDefinition = "varchar(256) COMMENT '缩略图地址'")
  private String thumb;

  @Column(columnDefinition = "varchar(256) COMMENT '内容'")
  private String content;

  @Column(columnDefinition = "varchar(256) COMMENT '辅导教具'")
  private String tool;

  @Column(columnDefinition = "varchar(256) COMMENT '配餐'")
  private String foodStuff;

  @Column(columnDefinition = "varchar(256) COMMENT '备注'")
  private String notes;

  @Column(columnDefinition = "int default 0 COMMENT '适用月龄'")
  private Integer month;

  @Column(columnDefinition = "int default 0 COMMENT '适用月龄高值'")
  private Integer monthMax;

  @Column(columnDefinition = "bit(1) COMMENT '适用月龄'")
  private Boolean needVip;

}